package day05;

//For循环的演示
public class ForDemo {
    public static void main(String[] args) {
        int num = 0;
        for (int i = 1; i <= 100; i++) {
            num += i;
        }
        System.out.println("1到100的和为" + num);

    }
}
